package com.lswms.modules.lswms.service.orders;

import java.util.List;
import java.util.Map;

import com.lswms.common.page.PageData;
import com.lswms.common.service.CrudService;
import com.lswms.common.utils.Result;
import com.lswms.modules.lswms.dto.orders.OrderdetailDTO;
import com.lswms.modules.lswms.entity.orders.OrderdetailEntity;

/**
 * 出库明细
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-06-24
 */
public interface OrderdetailService extends CrudService<OrderdetailEntity, OrderdetailDTO> {

	Integer getOrderdetailLine(String orderkey);

	String delivery(List<OrderdetailEntity> orderList);

	String allocation(List<OrderdetailEntity> orderList);

	
	/**
	 * 将分配明细转换为任务
	 * @param orderList
	 * @param remoteAddr 
	 * @return
	 */
	String release(List<OrderdetailEntity> orderList, String remoteAddr);

	PageData<OrderdetailEntity> pageBySql(Map<String, Object> params);

	String valide(OrderdetailDTO dto);

	String valideDelete(Long[] ids);

}